package app.texas.com.devilfishhouse.View.Fragment.mine;

import java.util.ArrayList;
import java.util.List;

import app.texas.com.devilfishhouse.Base.BaseModel;
import app.texas.com.devilfishhouse.Beans.BannerBean;
import app.texas.com.devilfishhouse.Beans.LoginBean;
import app.texas.com.devilfishhouse.myUtils.WLogger;

import static android.os.AsyncTask.execute;

/**
 * Created by solin on 2018/7/20.
 */

public class MineModel extends BaseModel {

    @Override
    public void saveData() {
        super.saveData();
    }

    @Override
    public void clearData() {
        super.clearData();
    }

    /**
     * 请求轮播图数据
     *
     * @param params
     * @param callBack
     */
    public void getUserInfo(String params, final IListCallBack callBack) {
        execute(new Runnable() {
            @Override
            public void run() {
                List<BannerBean> list = new ArrayList<>();
                BannerBean bannerBean = new BannerBean();
                bannerBean.setUrl("http://ejiaqin.site4test.com/upload/banner/1531362289-600.jpg");
                list.add(bannerBean);
                BannerBean bannerBean2 = new BannerBean();
                bannerBean2.setUrl("http://ejiaqin.site4test.com/upload/banner/1531362296-600.jpg");
                list.add(bannerBean2);
                WLogger.log("size：" + list.size() + "");
                callBack.onResult(list);
            }
        });


    }

}
